import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:jinke/page/attract/index.dart';
import 'package:jinke/page/instruct/index.dart';
import 'package:jinke/page/pro_list/main/view.dart';
import 'package:jinke/page/pro_list/subs/pro_detail/subs/pro_instruction/index.dart';
import 'package:jinke/page/report/index.dart';
import 'package:jinke/page/statistics/index.dart';
import 'model/tab_title_model.dart';

class HomeState {
  late List<TabTitleModel> tabTitles;
  int tabTitleIndex = 0;
  late List<Widget> pages;
  late PageController pageCtrl;
  late ScrollController sc;
  HomeState() {
    tabTitles = [
      TabTitleModel(
          text: '项目列表',
          selectedIcon: 'tab_pro_y.png',
          icon: 'tab_pro_n.png',
          isSelected: true),
      TabTitleModel(
          text: '每日报告',
          selectedIcon: 'tab_report_y.png',
          icon: 'tab_report_n.png'),
      TabTitleModel(
          text: '领导批示',
          selectedIcon: 'tab_instruct_y.png',
          icon: 'tab_instruct_n.png'),
      TabTitleModel(
          text: '统计分析',
          selectedIcon: 'tab_statistics_y.png',
          icon: 'tab_statistics_n.png'),
      TabTitleModel(
          text: '招引工作',
          selectedIcon: 'tab_attract_y.png',
          icon: 'tab_attract_n.png'),
    ];
    pages = [
      ProListPage(),
      ReportPage(),
      InstructPage(),
      StatisticsPage(),
      AttractPage(),
    ];
    pageCtrl = PageController();
    sc = ScrollController();
  }
}
